<?php

namespace App\Repository\Auth;

use App\Model\Auth\Admin;
use App\Model\Auth\AdminRole;
use App\Model\Auth\Menu;
use App\Repository\IRepository;
use Hyperf\Database\Model\Builder;

class AdminRoleRepository extends IRepository
{
    public function __construct(
        protected readonly AdminRole $model
    )
    {
    }

    public function handleSearch(Builder $query, array $params): Builder
    {

        return $query->where("status", 1);
    }
}